package com.xbongbong.pro.coolapp.pojo;

import com.xbongbong.paas.constant.PaasConstant;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author: hongxiao
 * @date: 2022-07-08 16:44
 */
@Getter
@Setter
@ToString
public class CardProcessWorkflowPojo implements Serializable {
    private static final long serialVersionUID = -9065891784361971121L;

    /**
     * 是否工作流
     */
    private Boolean workflow;
    /**
     * 审批开始节点
     * 老审批：PaasProcessNodeTaskEntityExt
     * 工作流：WorkflowTaskNodeEntity
     */
    private Object startNodeTask;
    /**
     * 审批节点
     * 老审批：PaasProcessNodeTaskEntityExt
     * 工作流：WorkflowTaskNodeEntity
     */
    private Map<String, Object> mainProcessMap;
    /**
     * 审批抄送节点
     * 老审批：PaasProcessNodeTaskEntityExt
     * 工作流：WorkflowTaskNodeEntity
     */
    private Map<String, Object> ccProcessMap;

    private String startNodeUserId;
    /**
     * 审批节点id
     */
    private Long processNodeTaskId;

    /**
     * 审批信息
     */
    private CardDataProcessNode processNode;

    /**
     * 审批人
     */
    private List<String> mainUserIds;
    /**
     * 抄送人
     */
    private List<String> ccUserIds;

    /**
     * 审批结果
     */
    private String approvalResult;


    public CardProcessWorkflowPojo() {
        mainProcessMap = new HashMap<>(PaasConstant.DEFAULT_INITIAL_CAPACITY);
        ccProcessMap = new HashMap<>(PaasConstant.DEFAULT_INITIAL_CAPACITY);
        processNode = new CardDataProcessNode();
        mainUserIds = new ArrayList<>();
        ccUserIds = new ArrayList<>();
    }
}
